package com.rpc.core.proxy;

import com.rpc.core.holder.bean.ImportBean;

import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;

public class ImportBeanProxy implements InvocationHandler {

    private ImportBean importBean;

    public ImportBeanProxy(ImportBean importBean) {
        this.importBean = importBean;
    }

    @Override
    public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
        return importBean.invoke(method.getName(),args);
    }
}
